home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-01-15 | 2.5 KB | 81 lines | [TEXT/MPS ] |
- //******************************************************************************
- //
- // WindoidUtil.h
- //
- //******************************************************************************
- #ifndef __WindoidUtil__
- #define __WindoidUtil__
-
- //------------------------------------------------------------------------------
-
- #ifndef __WindoidDefines__
- #include "WindoidDefines.h"
- #endif
-
- //******************************************************************************
- // Macros to make code cleaner
- //------------------------------------------------------------------------------
-
- #define IsOdd(value) ((value) & 1)
- #define IsEven(value) (!IsOdd(value))
-
- //******************************************************************************
- // Prototypes
- //------------------------------------------------------------------------------
-
- Boolean HasSystem7(void);
-
- Boolean HasCQDraw(void);
-
- //------------------------------------------------------------------------------
-
- void SyncPorts(void);
-
- #ifndef SYS7_OR_LATER
- void OurDeviceLoop(RgnHandle drawingRgn,
- DeviceLoopDrawingProcPtr drawingProc,
- long userData, DeviceLoopFlags flags);
- #else
- #define OurDeviceLoop(drawingRgn, drawingProc, userData, flags) \
- DeviceLoop(drawingRgn, drawingProc, userData, flags)
- #endif
-
- //------------------------------------------------------------------------------
-
- void WctbForeColor(WindowPeek window, short partCode);
-
- void WctbBackColor(WindowPeek window, short partCode);
-
- //------------------------------------------------------------------------------
-
- void AvgWctbForeColor(WindowPeek window, short light, short dark, short shade);
-
- void AvgWctbBackColor(WindowPeek window, short light, short dark, short shade);
-
- //------------------------------------------------------------------------------
-
- void SwapForeBackColor(short variation);
-
- void ColorsNormal(void);
-
- //------------------------------------------------------------------------------
-
- void FrameBox(const Rect *theRect);
-
- void FrameTopLeftShading(Rect theRect);
-
- void FrameBottomRightShading(Rect theRect);
-
- //------------------------------------------------------------------------------
-
- void GetGlobalMappingPoint(WindowPeek window, Point *thePoint);
-
- void GetGlobalContentRect(WindowPeek window, Rect *contentRect);
-
- //------------------------------------------------------------------------------
-
- short CheckDisplay(short theDepth, short deviceFlags,
- GDHandle targetDevice, WindowPeek window);
-
- //******************************************************************************
- #endif